package com.wxf.book1_38;

import java.util.Scanner;

public class ShareApples {

	public static void main(String[] args) {
		shareApple();

	}

	private static void shareApple() {
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入篮子里有几个苹果：");
		int appleNum = sc.nextInt();
		System.out.println("请输入有几个学生：");
		int stuNum = sc.nextInt();
		double stuApples = (double)appleNum / stuNum;
		System.out.println("每个学生分到的苹果为：" + stuApples);
		sc.close();
	}

}
